<%--
  Created by IntelliJ IDEA.
  User: 陈学凯
  Date: 2024/11/22
  Time: 下午10:17
  To change this template use File | Settings | File Templates.
--%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sum of numbers from 1 to 100</title>
</head>
<body bgcolor="cyan">
<h3>这是一个简单的 JSP 页面</h3>
<%
    int sum = 0;
    for (int i = 1; i <= 100; i++) {
        sum += i;
    }
%>
<h4>1 到 100 的连续和是: <%= sum %></h4>
</body>
</html>

